import React ,{Component} from 'react';
import {Icon} from 'antd';
import './cHeader.css';
import {withRouter} from 'react-router-dom';

class Cheader extends Component {
   


    goBack = ()=>{
        this.props.history.goBack();
    }

    render (){
        return (
            <div className="Cheader">
                <span className="c_back" onClick={this.goBack.bind(this)}>
                   <Icon type="left" style={{ fontSize: 18, color: '#ffffff' }}/>
                </span>
                <span className="c_text">城市选择</span>
            </div>
        )
    }
}

export default withRouter(Cheader);